// ==UserScript==
// @name         AVMOO搜索结果只有一个时自动跳转
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  try to take over the world!
// @author       You
// @match        https://*/cn/search/*
// @grant        none
// @require      http://code.jquery.com/jquery-1.11.0.min.js
// ==/UserScript==

(function () {
    'use strict';

    var title = $("title:first").text();
    var isAvmoo = title.indexOf("AVMOO") > -1;

    if (isAvmoo) {
        var result_array = $(".movie-box");
        if (result_array.size() == 1) {
            location.href = result_array.attr("href")
        }
    }


})();